package cz.tpj.database.ip_adresy;

import static org.junit.Assert.*;

import org.junit.Test;

import cz.tpj.util.ErrorDatabase;

public class IpTest {

	@Test
	public void testIpStringString() {
		try {
			Ip o1 = new Ip("1","123.11.250.23");
			
			o1.setId("2");
			o1.setIp("111.222.111.222");
			
			assertEquals("2", o1.getId());			
			assertEquals("111.222.111.222", o1.getIp());			
		} catch (ErrorDatabase e) {
			e.printStackTrace();
		}
	}

}
